package com.liyunc.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;


@RestController
@RequestMapping(value = "/ui")
public class LoginController {

    /**
     * 跳转到登录页面.
     */
    @RequestMapping("/login")
    public ModelAndView login() {
        return new ModelAndView("login");
    }

    /**
     * 跳转到注册页面.
     */
    @RequestMapping("/register")
    public ModelAndView register() {
        return new ModelAndView("register");
    }
}
